﻿namespace PMS.Client.FrmOrgan
{
    using PMS.BLL;
    using PMS.Common;
    using PMS.Model;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FrmAdd : Form
    {
        private TextBox Address;
        private TextBox BankID;
        private TextBox BankName;
        private Button btnCancel;
        private Button btnParentID;
        private Button btnSave;
        private IContainer components = null;
        private TextBox Contact;
        private GroupBox groupBox1;
        private GroupBox groupBox3;
        private Label label1;
        private Label label10;
        private Label label11;
        private Label label12;
        private Label label13;
        private Label label14;
        private Label label15;
        private Label label16;
        private Label label17;
        private Label label18;
        private Label label19;
        private Label label2;
        private Label label23;
        private Label label24;
        private Label label25;
        private Label label26;
        private Label label27;
        private Label label28;
        private Label label29;
        private Label label3;
        private Label label30;
        private Label label31;
        private Label label32;
        private Label label33;
        private Label label4;
        private Label label5;
        private Label label6;
        private Label label7;
        private Label label8;
        private Label label9;
        private Label lbTitle;
        private TextBox LegalPerson;
        private TextBox OrganBranchCode;
        private ComboBox OrganBuildID;
        private OrganChangeLogBLL organChangeLogBLL = new OrganChangeLogBLL();
        private TextBox OrganCode;
        private ComboBox OrganLevelID;
        private TextBox OrganName;
        private TextBox OrganName2;
        private ComboBox OrganRoleID;
        private ComboBox OrganTypeID;
        private TextBox ParentID;
        private TextBox PayWay;
        private TextBox PermitNo;
        private TextBox Postcode;
        private RadioButton rbIsBusiness;
        private RadioButton rbIsOfficer;
        private RadioButton rbIsWork;
        private TextBox Remark;
        private TextBox systermType;
        private TextBox Tel;
        private TextBox textBox15;
        private TextBox textBox16;
        private TextBox textBox17;

        public FrmAdd()
        {
            this.InitializeComponent();
            this.InitData();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            base.DialogResult = DialogResult.No;
            base.Close();
        }

        private void btnParentID_Click(object sender, EventArgs e)
        {
            FrmSelect select = new FrmSelect();
            select.ShowDialog();
            if (select.DialogResult == DialogResult.OK)
            {
                this.ParentID.Text = select.OrganName;
                this.ParentID.Tag = select.Organ;
            }
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            if (this.OrganName.Text.Trim() == "")
            {
                MessageBox.Show("机构名称不能为空！");
            }
            else
            {
                int? nullable;
                OrganChangeLog log2 = new OrganChangeLog {
                    OrganName = this.OrganName.Text.Trim(),
                    Address = this.Address.Text,
                    BankID = this.BankID.Text,
                    BankName = this.BankName.Text,
                    Contact = this.Contact.Text,
                    LegalPerson = this.LegalPerson.Text,
                    LevelNo = (this.ParentID.Tag == null) ? 1 : ((nullable = ((Organ) this.ParentID.Tag).LevelNo).HasValue ? new int?(nullable.GetValueOrDefault() + 1) : 0),
                    ParentID = new int?((this.ParentID.Tag == null) ? 0 : ((Organ) this.ParentID.Tag).OrganID),
                    ParentName = this.ParentID.Text.Trim(),
                    OrganBuildID = new int?(Convert.ToInt32(this.OrganBuildID.SelectedValue)),
                    OrganCode = this.OrganCode.Text,
                    OrganDescription = "",
                    OrganLevelID = new int?(Convert.ToInt32(this.OrganLevelID.SelectedValue)),
                    OrganName2 = this.OrganName2.Text,
                    PayWay = this.PayWay.Text,
                    OrganRoleID = new int?(Convert.ToInt32(this.OrganRoleID.SelectedValue)),
                    OrganTypeID = new int?(Convert.ToInt32(this.OrganTypeID.SelectedValue)),
                    PermitNo = this.PermitNo.Text,
                    Postcode = this.Postcode.Text,
                    Tel = this.Tel.Text,
                    Remark = this.Remark.Text,
                    IsOffice = this.rbIsOfficer.Checked ? 1 : (this.rbIsBusiness.Checked ? 2 : 3),
                    PermitOrganCount = 0,
                    RealityOrganCount = 0,
                    PermitDate = new DateTime?(DateTime.Now),
                    AddDate = new DateTime?(DateTime.Now),
                    AddUser = PMS.Common.Keys.Admin.LoginName,
                    UpdateDate = new DateTime?(DateTime.Now),
                    UpdateUser = PMS.Common.Keys.Admin.LoginName,
                    LogType = "新增",
                    CheckDate = new DateTime?(DateTime.Now),
                    CheckedState = "未审核"
                };
                OrganChangeLog model = log2;
                if (this.organChangeLogBLL.Add(model) > 0)
                {
                    MessageBox.Show("添加成功，等待审核中！");
                    base.DialogResult = DialogResult.OK;
                    base.Close();
                }
                else
                {
                    MessageBox.Show("添加失败！");
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FrmAdd_Load(object sender, EventArgs e)
        {
        }

        public void InitData()
        {
            List<OrganLevel> list = new OrganLevelBLL().GetList();
            if (list == null)
            {
                list = new List<OrganLevel>();
            }
            OrganLevel item = new OrganLevel {
                LevelID = 0,
                LevelName = "请选择"
            };
            list.Insert(0, item);
            this.OrganLevelID.DataSource = list;
            this.OrganLevelID.DisplayMember = "LevelName";
            this.OrganLevelID.ValueMember = "LevelID";
            List<OrganRole> list2 = new OrganRoleBLL().GetList();
            if (list2 == null)
            {
                list2 = new List<OrganRole>();
            }
            OrganRole role = new OrganRole {
                RoleID = 0,
                RoleName = "请选择"
            };
            list2.Insert(0, role);
            this.OrganRoleID.DataSource = list2;
            this.OrganRoleID.DisplayMember = "RoleName";
            this.OrganRoleID.ValueMember = "RoleID";
            List<OrganType> list3 = new OrganTypeBLL().GetList();
            if (list3 == null)
            {
                list3 = new List<OrganType>();
            }
            OrganType type = new OrganType {
                TypeID = 0,
                TypeName = "请选择"
            };
            list3.Insert(0, type);
            this.OrganTypeID.DataSource = list3;
            this.OrganTypeID.DisplayMember = "TypeName";
            this.OrganTypeID.ValueMember = "TypeID";
            List<OrganBuild> list4 = new OrganBuildBLL().GetList();
            if (list4 == null)
            {
                list4 = new List<OrganBuild>();
            }
            OrganBuild build = new OrganBuild {
                BuildID = 0,
                BuildName = "请选择"
            };
            list4.Insert(0, build);
            this.OrganBuildID.DataSource = list4;
            this.OrganBuildID.DisplayMember = "BuildName";
            this.OrganBuildID.ValueMember = "BuildID";
            this.OrganCode.Text = Guid.NewGuid().ToString();
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmAdd));
            this.groupBox1 = new GroupBox();
            this.rbIsWork = new RadioButton();
            this.rbIsBusiness = new RadioButton();
            this.rbIsOfficer = new RadioButton();
            this.btnParentID = new Button();
            this.ParentID = new TextBox();
            this.OrganRoleID = new ComboBox();
            this.label30 = new Label();
            this.label27 = new Label();
            this.label26 = new Label();
            this.LegalPerson = new TextBox();
            this.label19 = new Label();
            this.BankID = new TextBox();
            this.label17 = new Label();
            this.BankName = new TextBox();
            this.label18 = new Label();
            this.OrganBuildID = new ComboBox();
            this.label15 = new Label();
            this.OrganBranchCode = new TextBox();
            this.label16 = new Label();
            this.label14 = new Label();
            this.OrganTypeID = new ComboBox();
            this.label13 = new Label();
            this.OrganLevelID = new ComboBox();
            this.label12 = new Label();
            this.label11 = new Label();
            this.PermitNo = new TextBox();
            this.label9 = new Label();
            this.label10 = new Label();
            this.label7 = new Label();
            this.systermType = new TextBox();
            this.label8 = new Label();
            this.label6 = new Label();
            this.label5 = new Label();
            this.PayWay = new TextBox();
            this.label3 = new Label();
            this.OrganName2 = new TextBox();
            this.label4 = new Label();
            this.OrganCode = new TextBox();
            this.label2 = new Label();
            this.OrganName = new TextBox();
            this.label1 = new Label();
            this.groupBox3 = new GroupBox();
            this.Remark = new TextBox();
            this.label33 = new Label();
            this.Tel = new TextBox();
            this.label31 = new Label();
            this.Contact = new TextBox();
            this.label32 = new Label();
            this.textBox15 = new TextBox();
            this.label23 = new Label();
            this.textBox16 = new TextBox();
            this.label24 = new Label();
            this.textBox17 = new TextBox();
            this.label25 = new Label();
            this.Postcode = new TextBox();
            this.label28 = new Label();
            this.Address = new TextBox();
            this.label29 = new Label();
            this.btnSave = new Button();
            this.btnCancel = new Button();
            this.lbTitle = new Label();
            this.groupBox1.SuspendLayout();
            this.groupBox3.SuspendLayout();
            base.SuspendLayout();
            this.groupBox1.Controls.Add(this.rbIsWork);
            this.groupBox1.Controls.Add(this.rbIsBusiness);
            this.groupBox1.Controls.Add(this.rbIsOfficer);
            this.groupBox1.Controls.Add(this.btnParentID);
            this.groupBox1.Controls.Add(this.ParentID);
            this.groupBox1.Controls.Add(this.OrganRoleID);
            this.groupBox1.Controls.Add(this.label30);
            this.groupBox1.Controls.Add(this.label27);
            this.groupBox1.Controls.Add(this.label26);
            this.groupBox1.Controls.Add(this.LegalPerson);
            this.groupBox1.Controls.Add(this.label19);
            this.groupBox1.Controls.Add(this.BankID);
            this.groupBox1.Controls.Add(this.label17);
            this.groupBox1.Controls.Add(this.BankName);
            this.groupBox1.Controls.Add(this.label18);
            this.groupBox1.Controls.Add(this.OrganBuildID);
            this.groupBox1.Controls.Add(this.label15);
            this.groupBox1.Controls.Add(this.OrganBranchCode);
            this.groupBox1.Controls.Add(this.label16);
            this.groupBox1.Controls.Add(this.label14);
            this.groupBox1.Controls.Add(this.OrganTypeID);
            this.groupBox1.Controls.Add(this.label13);
            this.groupBox1.Controls.Add(this.OrganLevelID);
            this.groupBox1.Controls.Add(this.label12);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.PermitNo);
            this.groupBox1.Controls.Add(this.label9);
            this.groupBox1.Controls.Add(this.label10);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.systermType);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.PayWay);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.OrganName2);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.OrganCode);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.OrganName);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.ForeColor = SystemColors.WindowText;
            this.groupBox1.Location = new Point(12, 0x2a);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(0x284, 0x110);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "机构情况";
            this.rbIsWork.AutoSize = true;
            this.rbIsWork.Location = new Point(0x21f, 0xef);
            this.rbIsWork.Name = "rbIsWork";
            this.rbIsWork.Size = new Size(70, 0x10);
            this.rbIsWork.TabIndex = 0x37;
            this.rbIsWork.Text = "参工单位";
            this.rbIsWork.UseVisualStyleBackColor = true;
            this.rbIsBusiness.AutoSize = true;
            this.rbIsBusiness.Location = new Point(0x1dc, 0xef);
            this.rbIsBusiness.Name = "rbIsBusiness";
            this.rbIsBusiness.Size = new Size(70, 0x10);
            this.rbIsBusiness.TabIndex = 0x36;
            this.rbIsBusiness.Text = "事务单位";
            this.rbIsBusiness.UseVisualStyleBackColor = true;
            this.rbIsOfficer.AutoSize = true;
            this.rbIsOfficer.Checked = true;
            this.rbIsOfficer.Location = new Point(0x198, 0xef);
            this.rbIsOfficer.Name = "rbIsOfficer";
            this.rbIsOfficer.Size = new Size(70, 0x10);
            this.rbIsOfficer.TabIndex = 0x35;
            this.rbIsOfficer.TabStop = true;
            this.rbIsOfficer.Text = "行政单位";
            this.rbIsOfficer.UseVisualStyleBackColor = true;
            this.btnParentID.BackColor = Color.Gainsboro;
            this.btnParentID.FlatAppearance.BorderColor = Color.DimGray;
            this.btnParentID.FlatStyle = FlatStyle.Flat;
            this.btnParentID.Location = new Point(0x24b, 0x8f);
            this.btnParentID.Name = "btnParentID";
            this.btnParentID.Size = new Size(0x15, 0x15);
            this.btnParentID.TabIndex = 0x34;
            this.btnParentID.Text = "…";
            this.btnParentID.UseVisualStyleBackColor = false;
            this.btnParentID.Click += new EventHandler(this.btnParentID_Click);
            this.ParentID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.ParentID.BorderStyle = BorderStyle.FixedSingle;
            this.ParentID.Location = new Point(0x199, 0x8f);
            this.ParentID.Name = "ParentID";
            this.ParentID.Size = new Size(0xc7, 0x15);
            this.ParentID.TabIndex = 0x25;
            this.OrganRoleID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganRoleID.DropDownStyle = ComboBoxStyle.DropDownList;
            this.OrganRoleID.FlatStyle = FlatStyle.Flat;
            this.OrganRoleID.FormattingEnabled = true;
            this.OrganRoleID.Location = new Point(0x67, 0x71);
            this.OrganRoleID.Name = "OrganRoleID";
            this.OrganRoleID.Size = new Size(0xc7, 20);
            this.OrganRoleID.TabIndex = 15;
            this.label30.AutoSize = true;
            this.label30.ForeColor = Color.Red;
            this.label30.Location = new Point(0x266, 0x52);
            this.label30.Name = "label30";
            this.label30.Size = new Size(11, 12);
            this.label30.TabIndex = 0x24;
            this.label30.Text = "*";
            this.label27.AutoSize = true;
            this.label27.ForeColor = Color.Red;
            this.label27.Location = new Point(0x266, 0xb2);
            this.label27.Name = "label27";
            this.label27.Size = new Size(11, 12);
            this.label27.TabIndex = 0x23;
            this.label27.Text = "*";
            this.label26.AutoSize = true;
            this.label26.ForeColor = Color.Red;
            this.label26.Location = new Point(0x266, 0x93);
            this.label26.Name = "label26";
            this.label26.Size = new Size(11, 12);
            this.label26.TabIndex = 0x22;
            this.label26.Text = "*";
            this.LegalPerson.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.LegalPerson.BorderStyle = BorderStyle.FixedSingle;
            this.LegalPerson.Location = new Point(0x199, 0xcf);
            this.LegalPerson.Name = "LegalPerson";
            this.LegalPerson.Size = new Size(0xc7, 0x15);
            this.LegalPerson.TabIndex = 0x21;
            this.label19.AutoSize = true;
            this.label19.Location = new Point(350, 0xd3);
            this.label19.Name = "label19";
            this.label19.Size = new Size(0x35, 12);
            this.label19.TabIndex = 0x20;
            this.label19.Text = "法人代表";
            this.BankID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.BankID.BorderStyle = BorderStyle.FixedSingle;
            this.BankID.Location = new Point(0x67, 0xee);
            this.BankID.Name = "BankID";
            this.BankID.Size = new Size(0xc7, 0x15);
            this.BankID.TabIndex = 0x1f;
            this.label17.AutoSize = true;
            this.label17.Location = new Point(0x2c, 240);
            this.label17.Name = "label17";
            this.label17.Size = new Size(0x35, 12);
            this.label17.TabIndex = 30;
            this.label17.Text = "银行帐号";
            this.BankName.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.BankName.BorderStyle = BorderStyle.FixedSingle;
            this.BankName.Location = new Point(0x67, 0xcf);
            this.BankName.Name = "BankName";
            this.BankName.Size = new Size(0xc7, 0x15);
            this.BankName.TabIndex = 0x1d;
            this.label18.AutoSize = true;
            this.label18.Location = new Point(0x2c, 0xd3);
            this.label18.Name = "label18";
            this.label18.Size = new Size(0x35, 12);
            this.label18.TabIndex = 0x1c;
            this.label18.Text = "开户银行";
            this.OrganBuildID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganBuildID.DropDownStyle = ComboBoxStyle.DropDownList;
            this.OrganBuildID.FlatStyle = FlatStyle.Flat;
            this.OrganBuildID.FormattingEnabled = true;
            this.OrganBuildID.Location = new Point(0x199, 0xaf);
            this.OrganBuildID.Name = "OrganBuildID";
            this.OrganBuildID.Size = new Size(0xc7, 20);
            this.OrganBuildID.TabIndex = 0x1a;
            this.label15.AutoSize = true;
            this.label15.Location = new Point(350, 0xb2);
            this.label15.Name = "label15";
            this.label15.Size = new Size(0x35, 12);
            this.label15.TabIndex = 0x1b;
            this.label15.Text = "机构编码";
            this.OrganBranchCode.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganBranchCode.BorderStyle = BorderStyle.FixedSingle;
            this.OrganBranchCode.Location = new Point(0x67, 0xaf);
            this.OrganBranchCode.Name = "OrganBranchCode";
            this.OrganBranchCode.Size = new Size(0xc7, 0x15);
            this.OrganBranchCode.TabIndex = 0x19;
            this.label16.AutoSize = true;
            this.label16.Location = new Point(20, 0xb2);
            this.label16.Name = "label16";
            this.label16.Size = new Size(0x4d, 12);
            this.label16.TabIndex = 0x18;
            this.label16.Text = "组织机构代码";
            this.label14.AutoSize = true;
            this.label14.Location = new Point(350, 0x93);
            this.label14.Name = "label14";
            this.label14.Size = new Size(0x35, 12);
            this.label14.TabIndex = 0x17;
            this.label14.Text = "隶属单位";
            this.OrganTypeID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganTypeID.DropDownStyle = ComboBoxStyle.DropDownList;
            this.OrganTypeID.FlatStyle = FlatStyle.Flat;
            this.OrganTypeID.FormattingEnabled = true;
            this.OrganTypeID.Location = new Point(0x67, 0x90);
            this.OrganTypeID.Name = "OrganTypeID";
            this.OrganTypeID.Size = new Size(0xc7, 20);
            this.OrganTypeID.TabIndex = 20;
            this.label13.AutoSize = true;
            this.label13.Location = new Point(0x2c, 0x93);
            this.label13.Name = "label13";
            this.label13.Size = new Size(0x35, 12);
            this.label13.TabIndex = 0x15;
            this.label13.Text = "机构类别";
            this.OrganLevelID.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganLevelID.DropDownStyle = ComboBoxStyle.DropDownList;
            this.OrganLevelID.FlatStyle = FlatStyle.Flat;
            this.OrganLevelID.FormattingEnabled = true;
            this.OrganLevelID.ItemHeight = 12;
            this.OrganLevelID.Location = new Point(0x199, 80);
            this.OrganLevelID.Name = "OrganLevelID";
            this.OrganLevelID.Size = new Size(0xc7, 20);
            this.OrganLevelID.TabIndex = 12;
            this.label12.AutoSize = true;
            this.label12.ForeColor = Color.Red;
            this.label12.Location = new Point(0x266, 0x73);
            this.label12.Name = "label12";
            this.label12.Size = new Size(11, 12);
            this.label12.TabIndex = 0x13;
            this.label12.Text = "*";
            this.label11.AutoSize = true;
            this.label11.ForeColor = Color.Red;
            this.label11.Location = new Point(0x134, 0x73);
            this.label11.Name = "label11";
            this.label11.Size = new Size(11, 12);
            this.label11.TabIndex = 0x12;
            this.label11.Text = "*";
            this.PermitNo.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.PermitNo.BorderStyle = BorderStyle.FixedSingle;
            this.PermitNo.Location = new Point(0x199, 0x70);
            this.PermitNo.Name = "PermitNo";
            this.PermitNo.Size = new Size(0xc7, 0x15);
            this.PermitNo.TabIndex = 0x11;
            this.label9.AutoSize = true;
            this.label9.Location = new Point(350, 0x73);
            this.label9.Name = "label9";
            this.label9.Size = new Size(0x35, 12);
            this.label9.TabIndex = 0x10;
            this.label9.Text = "批准文号";
            this.label10.AutoSize = true;
            this.label10.Location = new Point(0x2c, 0x73);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x35, 12);
            this.label10.TabIndex = 14;
            this.label10.Text = "机构性质";
            this.label7.AutoSize = true;
            this.label7.Location = new Point(350, 0x53);
            this.label7.Name = "label7";
            this.label7.Size = new Size(0x35, 12);
            this.label7.TabIndex = 12;
            this.label7.Text = "机构规格";
            this.systermType.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.systermType.BorderStyle = BorderStyle.FixedSingle;
            this.systermType.Location = new Point(0x67, 80);
            this.systermType.Name = "systermType";
            this.systermType.Size = new Size(0xc7, 0x15);
            this.systermType.TabIndex = 11;
            this.label8.AutoSize = true;
            this.label8.Location = new Point(0x2c, 0x53);
            this.label8.Name = "label8";
            this.label8.Size = new Size(0x35, 12);
            this.label8.TabIndex = 10;
            this.label8.Text = "系统类别";
            this.label6.AutoSize = true;
            this.label6.ForeColor = Color.Red;
            this.label6.Location = new Point(0x266, 0x15);
            this.label6.Name = "label6";
            this.label6.Size = new Size(11, 12);
            this.label6.TabIndex = 9;
            this.label6.Text = "*";
            this.label5.AutoSize = true;
            this.label5.ForeColor = Color.Red;
            this.label5.Location = new Point(0x134, 0x15);
            this.label5.Name = "label5";
            this.label5.Size = new Size(11, 12);
            this.label5.TabIndex = 8;
            this.label5.Text = "*";
            this.PayWay.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.PayWay.BorderStyle = BorderStyle.FixedSingle;
            this.PayWay.Location = new Point(0x199, 0x31);
            this.PayWay.Name = "PayWay";
            this.PayWay.Size = new Size(0xc7, 0x15);
            this.PayWay.TabIndex = 7;
            this.label3.AutoSize = true;
            this.label3.Location = new Point(350, 0x34);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x35, 12);
            this.label3.TabIndex = 6;
            this.label3.Text = "拔款形式";
            this.OrganName2.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganName2.BorderStyle = BorderStyle.FixedSingle;
            this.OrganName2.Location = new Point(0x67, 0x31);
            this.OrganName2.Name = "OrganName2";
            this.OrganName2.Size = new Size(0xc7, 0x15);
            this.OrganName2.TabIndex = 5;
            this.label4.AutoSize = true;
            this.label4.Location = new Point(0x2c, 0x34);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x35, 12);
            this.label4.TabIndex = 4;
            this.label4.Text = "第二名称";
            this.OrganCode.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganCode.BorderStyle = BorderStyle.FixedSingle;
            this.OrganCode.Location = new Point(0x199, 0x12);
            this.OrganCode.Name = "OrganCode";
            this.OrganCode.ReadOnly = true;
            this.OrganCode.Size = new Size(0xc7, 0x15);
            this.OrganCode.TabIndex = 3;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(350, 0x15);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x35, 12);
            this.label2.TabIndex = 2;
            this.label2.Text = "机构编号";
            this.OrganName.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.OrganName.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.OrganName.BorderStyle = BorderStyle.FixedSingle;
            this.OrganName.Location = new Point(0x67, 0x12);
            this.OrganName.Name = "OrganName";
            this.OrganName.Size = new Size(0xc7, 0x15);
            this.OrganName.TabIndex = 1;
            this.label1.AutoSize = true;
            this.label1.Location = new Point(0x2c, 0x15);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x35, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "机构名称";
            this.groupBox3.Controls.Add(this.Remark);
            this.groupBox3.Controls.Add(this.label33);
            this.groupBox3.Controls.Add(this.Tel);
            this.groupBox3.Controls.Add(this.label31);
            this.groupBox3.Controls.Add(this.Contact);
            this.groupBox3.Controls.Add(this.label32);
            this.groupBox3.Controls.Add(this.textBox15);
            this.groupBox3.Controls.Add(this.label23);
            this.groupBox3.Controls.Add(this.textBox16);
            this.groupBox3.Controls.Add(this.label24);
            this.groupBox3.Controls.Add(this.textBox17);
            this.groupBox3.Controls.Add(this.label25);
            this.groupBox3.Controls.Add(this.Postcode);
            this.groupBox3.Controls.Add(this.label28);
            this.groupBox3.Controls.Add(this.Address);
            this.groupBox3.Controls.Add(this.label29);
            this.groupBox3.ForeColor = SystemColors.WindowText;
            this.groupBox3.Location = new Point(12, 320);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new Size(0x284, 0xa1);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "联系方式";
            this.Remark.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.Remark.BorderStyle = BorderStyle.FixedSingle;
            this.Remark.Location = new Point(0x67, 0x53);
            this.Remark.Multiline = true;
            this.Remark.Name = "Remark";
            this.Remark.ScrollBars = ScrollBars.Vertical;
            this.Remark.Size = new Size(0x1f9, 0x3f);
            this.Remark.TabIndex = 0x27;
            this.label33.AutoSize = true;
            this.label33.Location = new Point(0x38, 0x55);
            this.label33.Name = "label33";
            this.label33.Size = new Size(0x1d, 12);
            this.label33.TabIndex = 0x26;
            this.label33.Text = "备注";
            this.Tel.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.Tel.BorderStyle = BorderStyle.FixedSingle;
            this.Tel.Location = new Point(0x199, 50);
            this.Tel.Name = "Tel";
            this.Tel.Size = new Size(0xc7, 0x15);
            this.Tel.TabIndex = 0x25;
            this.label31.AutoSize = true;
            this.label31.Location = new Point(350, 0x35);
            this.label31.Name = "label31";
            this.label31.Size = new Size(0x35, 12);
            this.label31.TabIndex = 0x24;
            this.label31.Text = "联系电话";
            this.Contact.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.Contact.BorderStyle = BorderStyle.FixedSingle;
            this.Contact.Location = new Point(0x67, 50);
            this.Contact.Name = "Contact";
            this.Contact.Size = new Size(0xc7, 0x15);
            this.Contact.TabIndex = 0x23;
            this.label32.AutoSize = true;
            this.label32.Location = new Point(0x38, 0x35);
            this.label32.Name = "label32";
            this.label32.Size = new Size(0x29, 12);
            this.label32.TabIndex = 0x22;
            this.label32.Text = "联系人";
            this.textBox15.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.textBox15.BorderStyle = BorderStyle.FixedSingle;
            this.textBox15.Location = new Point(0x175, 0xcf);
            this.textBox15.Name = "textBox15";
            this.textBox15.Size = new Size(0xc7, 0x15);
            this.textBox15.TabIndex = 0x21;
            this.label23.AutoSize = true;
            this.label23.Location = new Point(0x13a, 0xd3);
            this.label23.Name = "label23";
            this.label23.Size = new Size(0x35, 12);
            this.label23.TabIndex = 0x20;
            this.label23.Text = "法人代表";
            this.textBox16.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.textBox16.BorderStyle = BorderStyle.FixedSingle;
            this.textBox16.Location = new Point(0x57, 0xee);
            this.textBox16.Name = "textBox16";
            this.textBox16.Size = new Size(0xc7, 0x15);
            this.textBox16.TabIndex = 0x1f;
            this.label24.AutoSize = true;
            this.label24.Location = new Point(0x1c, 240);
            this.label24.Name = "label24";
            this.label24.Size = new Size(0x35, 12);
            this.label24.TabIndex = 30;
            this.label24.Text = "银行帐号";
            this.textBox17.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.textBox17.BorderStyle = BorderStyle.FixedSingle;
            this.textBox17.Location = new Point(0x57, 0xcf);
            this.textBox17.Name = "textBox17";
            this.textBox17.Size = new Size(0xc7, 0x15);
            this.textBox17.TabIndex = 0x1d;
            this.label25.AutoSize = true;
            this.label25.Location = new Point(0x1c, 0xd3);
            this.label25.Name = "label25";
            this.label25.Size = new Size(0x35, 12);
            this.label25.TabIndex = 0x1c;
            this.label25.Text = "开户银行";
            this.Postcode.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.Postcode.BorderStyle = BorderStyle.FixedSingle;
            this.Postcode.Location = new Point(0x199, 0x12);
            this.Postcode.Name = "Postcode";
            this.Postcode.Size = new Size(0xc7, 0x15);
            this.Postcode.TabIndex = 3;
            this.label28.AutoSize = true;
            this.label28.Location = new Point(350, 0x15);
            this.label28.Name = "label28";
            this.label28.Size = new Size(0x35, 12);
            this.label28.TabIndex = 2;
            this.label28.Text = "邮政编码";
            this.Address.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.Address.BorderStyle = BorderStyle.FixedSingle;
            this.Address.Location = new Point(0x67, 0x12);
            this.Address.Name = "Address";
            this.Address.Size = new Size(0xc7, 0x15);
            this.Address.TabIndex = 1;
            this.label29.AutoSize = true;
            this.label29.Location = new Point(0x2c, 0x15);
            this.label29.Name = "label29";
            this.label29.Size = new Size(0x35, 12);
            this.label29.TabIndex = 0;
            this.label29.Text = "通信地址";
            this.btnSave.BackColor = Color.White;
            this.btnSave.FlatStyle = FlatStyle.Popup;
            this.btnSave.Location = new Point(0xeb, 0x1ed);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new Size(0x4b, 0x17);
            this.btnSave.TabIndex = 3;
            this.btnSave.Text = "保存";
            this.btnSave.UseVisualStyleBackColor = false;
            this.btnSave.Click += new EventHandler(this.btnSave_Click);
            this.btnCancel.BackColor = Color.White;
            this.btnCancel.FlatStyle = FlatStyle.Popup;
            this.btnCancel.Location = new Point(0x1a5, 0x1ed);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 4;
            this.btnCancel.Text = "取消";
            this.btnCancel.UseVisualStyleBackColor = false;
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
            this.lbTitle.BackColor = Color.Gold;
            this.lbTitle.Dock = DockStyle.Top;
            this.lbTitle.Font = new Font("宋体", 14.25f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lbTitle.ForeColor = Color.Black;
            this.lbTitle.Location = new Point(0, 0);
            this.lbTitle.Name = "lbTitle";
            this.lbTitle.Size = new Size(0x29c, 0x1f);
            this.lbTitle.TabIndex = 14;
            this.lbTitle.Text = "添加机构基础信息";
            this.lbTitle.TextAlign = ContentAlignment.MiddleCenter;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            this.BackColor = Color.FromArgb(0xa4, 0xc4, 0xeb);
            base.ClientSize = new Size(0x29c, 0x20b);
            base.Controls.Add(this.lbTitle);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnSave);
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmAdd";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "添加机构";
            base.Load += new EventHandler(this.FrmAdd_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            base.ResumeLayout(false);
        }
    }
}

